﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace VOL.Entity.DomainModels.HealthEducation
{
    [Table("BroadCastManage")] // 映射数据库表名
    public class BroadCastManage
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int Id { get; set; }

        [Required]
        [Column("TaskId")] // 定时任务关联ID
        public int TaskId { get; set; }

        [Required]
        public int BroadCastTypeId { get; set; }

        [Required]
        [StringLength(50)]
        public string BroadCastContent { get; set; } // 广播内容标识

        [Required]
        [StringLength(50)]
        public string TemplateName { get; set; } // 宣教模板标识

        [Required]
        public string WardAreaId { get; set; } // 病区三级分科ID

        [Required]
        public string WardId { get; set; } // 病房ID

        [Required]
        public string BedId { get; set; } // 床位ID

        [Required]
        public int PatientId { get; set; } // 患者唯一标识

        [Required]
        [Range(1, int.MaxValue, ErrorMessage = "排序序号必须大于0")]
        public int SortId { get; set; } // 播放优先级

        [Required]
        [Range(0, 1)] // 限制0/1状态
        public int IsUse { get; set; } // 启用状态 (0:停用 1:启用)

        public DateTime CreateTime { get; set; } // 记录创建时间

    }
}
